package com.lill.org.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lill.common.component.util.IdUtil;
import com.lill.org.dao.IPositionDictDao;
import com.lill.org.model.PositionDictModel;
import com.lill.org.service.IPositionDictService;

/**
 * 职位字典管理Service实现类
 *
 * @author lill
 * @date 2019-04-24 15:25:16
 */
@Service("com.lill.org.service.impl.PositionDictServiceImpl")
public class PositionDictServiceImpl implements IPositionDictService {
    @Autowired
    private IPositionDictDao positionDictDao;

    public PositionDictModel queryObject(String id) {
        return positionDictDao.queryObject(id);
    }

    public List<PositionDictModel> queryList(Map<String, Object> map) {
        return positionDictDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return positionDictDao.queryTotal(map);
    }

    public int save(PositionDictModel orgPositionDict) {
        orgPositionDict.setId(IdUtil.createIdbyUUID());
        return positionDictDao.save(orgPositionDict);
    }

    public int update(PositionDictModel orgPositionDict) {
        return positionDictDao.update(orgPositionDict);
    }

    public int delete(String id) {
        return positionDictDao.delete(id);
    }

    public int deleteBatch(String[] ids) {
        return positionDictDao.deleteBatch(ids);
    }
    
	public int deleteLogicByMap(Map<String, Object> map) {
		return positionDictDao.deleteLogicByMap(map);
	}

    @Override
    public String queryPosition(String id) {
        return positionDictDao.queryPosition(id);
    }
    
    public List<Map<String, Object>> queryPositionSysDict() {
    	return positionDictDao.queryDictList();
    }
}
